Skip to content

fix(identity): restore generic identity overloads - #399

Merged
ChrisPulman merged 1 commit into
mainfrom
CP_restore-identity-generic-overloads
Oct 7, 2026
Merged

ChrisPulman merged 1 commit into
mainfrom
CP_restore-identity-generic-overloads

Conversation

@ChrisPulman

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix restoring the generic Identity overloads accidentally removed in #364 and released without them in 5.0.0.

What is the new behavior?

SQL Server and SQLite again expose all sixteen 4.1.0 overloads for custom TUser and optional TRole, through IHostApplicationBuilder and IServiceCollection, with default and explicit context lifetimes. Existing factory/delegate APIs remain available.

The restored declarations preserve the exact historical signatures. Method-level SST2307 exceptions document why callers must explicitly supply their Identity types. Context constructor preservation is annotated, and singleton contexts receive singleton options so scope validation succeeds.

What is the current behavior?

The generic user/role overloads are missing, forcing callers to replace previously valid registrations with factory and Identity configuration delegates.

Checklist

  • Tests have been added or updated (for bug fixes / features)
  • Docs have been added or updated (for bug fixes / features)
  • Changes target the main branch
  • PR title follows Conventional Commits

Additional information

  • Full Release solution build with -warnaserror: zero warnings and errors across all target frameworks.
  • Full TUnit solution suite: 780 passed, zero failed or skipped.
  • DataLogging suite with coverage: 73 passed, including 32 new compatibility cases.
  • Mtpunittestmcp coverage inspection: no missed executable lines in either provider extension file; some defensive branches remain uncovered.
  • Compared all eight restored declarations per provider against the v4.1.0 tag; none are missing or changed.
  • Public XML documentation is included for every restored overload.

- Restore the sixteen SQL Server and SQLite TUser/TRole overloads released in 4.1.0 while retaining current factory APIs.

- Preserve exact signatures with justified method-level SST2307 exceptions and keep singleton context options consistent.

- Add thirty-two TUnit compatibility cases for custom users, roles, service lifetimes, and fluent registration.
@ChrisPulman
ChrisPulman merged commit 194230e into main Oct 7, 2026
1 check passed
@ChrisPulman
ChrisPulman deleted the CP_restore-identity-generic-overloads branch October 7, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant